/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package ormsamples;

import org.orm.*;
public class CreateEncriptacionData {
	public void createTestData() throws PersistentException {
		PersistentTransaction t = orm.EncriptacionPersistentManager.instance().getSession().beginTransaction();
		try {
			orm.En_logs lormEn_logs = orm.En_logsDAO.createEn_logs();
			// TODO Initialize the properties of the persistent object here, the following properties must be initialized before saving : lo_tiempo, lo_resultado, lo_parametro
			orm.En_logsDAO.save(lormEn_logs);
			t.commit();
		}
		catch (Exception e) {
			t.rollback();
		}
		
	}
	
	public static void main(String[] args) {
		try {
			CreateEncriptacionData createEncriptacionData = new CreateEncriptacionData();
			try {
				createEncriptacionData.createTestData();
			}
			finally {
				orm.EncriptacionPersistentManager.instance().disposePersistentManager();
			}
		}
		catch (Exception e) {
			e.printStackTrace();
		}
	}
}
